package com.sunwayworld.basemodule.business.batchrevise.resource;

import com.sunwayworld.basemodule.business.batchrevise.bean.LimsSampleTempBean;
import com.sunwayworld.basemodule.samplemanage.sample.bean.LimsSampleBean;
import com.sunwayworld.framework.data.page.Page;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sunwayworld.basemodule.business.batchrevise.bean.LimsBatchSampleTempBean;
import com.sunwayworld.basemodule.business.batchrevise.service.LimsBatchSampleTempService;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import org.springframework.web.bind.annotation.RequestMethod;

@RequestMapping("/secure/basemodule/business/batch-sample-temps")
public interface LimsBatchSampleTempResource extends GenericResource<LimsBatchSampleTempService, LimsBatchSampleTempBean, Long> {

    @Log(value = "新增样本产品", type = LogType.INSERT)
    @RequestMapping(value = "/insert/sample",method = RequestMethod.POST)
    void insertSample(RestJsonWrapperBean wrapper);

    @Log(value = "修改样本产品", type = LogType.UPDATE)
    @RequestMapping(value = "/update/sample",method = RequestMethod.PUT)
    void updateSample(RestJsonWrapperBean wrapper);

    @RequestMapping(value = "/select/samples",method = RequestMethod.POST)
    Page<LimsSampleTempBean> selectBatchSampleInfo(RestJsonWrapperBean wrapper);

    @Log(value = "删除送检单样本", type = LogType.DELETE)
    @RequestMapping(value = "/delete/samples",method = RequestMethod.DELETE)
    void deleteBatchSamples(RestJsonWrapperBean wrapper);
}
